<template>
  <div class="date-range inline-flex items-center">
    <label class="w-70px mr-16px">{{ props.label }}:</label>
    <el-date-picker
      style="width: 256px"
      type="daterange"
      v-model="model"
      start-placeholder="开始日期"
      end-placeholder="结束日期"
      format="YYYY-MM-DD"
      value-format="YYYY-MM-DD HH:mm:ss"
    ></el-date-picker>
  </div>
</template>

<script setup>
import zhCn from "element-plus/dist/locale/zh-cn.mjs";

const props = defineProps({
  label: String,
});
const model = defineModel({
  type: Array,
  default: () => [],
});
</script>
